{% extends "../personal/inc/personal_base.html" %}
{% block head %}
    <title>{{title}}-{{_web.sitename}}</title>
    <meta name="keywords" content="{{_web.keywords}}">
    <meta name="description" content="{{_web.description}}">
    {{ super() }}
{% endblock %}

{% block page_left %}
    <ul class="menu">
      <li class="">
        <a class="item" href="/personal/setting/index">
          <i class="icon icon-user"></i>基本信息</a>
      </li>
      <li class="active">
        <a class="item" href="/personal/setting/password">
          <i class="icon icon-lock2"></i>修改密码</a>
      </li>
      <li class="">
        <a class="item" href="/personal/setting/pic">
          <i class="icon icon-kindle"></i>头像设置</a>
      </li>
    </ul>
{% endblock %}

{% block page_right %}
    <div class="m-box">
        <div class="box-head">
            <strong class="box-title">修改密码</strong>
        </div>
        <div class="box-body">
            <input type="hidden" id="csrf" value="{{csrf}}">
            <div id="securityForm">
              {% if userinfo.way=='site' %}
                  <div class="register-item">
                    <label class="form-label">原始密码</label>
                    <div class="input-group">
                      <input type="text" class="form-control oldpassword" id="oldpassword" value="" validate="required|password|minpwd" maxlength="16" aria-describedby="basic-addon1">
                    </div>
                 </div>
              {%endif%}
              <div class="register-item">
                <label class="form-label">新密码</label>
                <div class="input-group">
                  <input type="text" class="form-control password" id="password" value="" validate="required|password|minpwd" maxlength="16" aria-describedby="basic-addon1">
                </div>
             </div>
              <div class="register-item">
                <label class="form-label">确认新密码</label>
                <div class="input-group">
                  <input type="text" class="form-control repassword" id="repassword" value="" validate="required|password|minpwd|repassword" maxlength="16" aria-describedby="basic-addon1">
                </div>
             </div>
                <div class="form-item">
                    <div class="form-target">
                        <label class="w-btn btn-m btn-success">
                            <button class="btn-input" type="submit" id="savebtn">保存修改</button>
                        </label>
                    </div>
                </div>
          </div>
        </div>
    </div>
{% endblock %}

{% block footer_other %}
<script type="text/javascript" src="{{_web.url}}{{theme_url}}/src/js/business/register/jquery.validate.js"></script>
<script type="text/javascript" src="{{_web.url}}{{theme_url}}/src/js/business/personal/reset.js"></script>
{% endblock %}
